Skip to content

[SourceKit] Delete old C++ NameMatcher #70389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 14, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Dec 11, 2023

Replace all usages of the old C++ NameMatcher with the NameMatcher in swift-syntax.

rdar://118994505

@ahoppen
Copy link
Member Author

ahoppen commented Dec 11, 2023

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Dec 11, 2023

@swift-ci Please SourceKit stress test

Comment on lines 50 to 53
target_compile_definitions(swiftIDE
PRIVATE
SWIFT_BUILD_SWIFT_SYNTAX
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should just be top level IMO, ie. add_definitions(-DSWIFT_BUILD_SWIFT_SYNTAX) in the top level CMakeLists.txt if SWIFT_BUILD_SWIFT_SYNTAX is enabled.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. Moved it.

@ahoppen
Copy link
Member Author

ahoppen commented Dec 12, 2023

Note to self: The stress tester passed

@ahoppen
Copy link
Member Author

ahoppen commented Dec 12, 2023

@swift-ci Please smoke test

…NameMatcher`

The `NameMatcher` implemented in swift-syntax as slightly different semantics because it consideres `(callable.|callAsFunction)(x: 78)` as a reference to `callAsFunction` instead of a call with argument labels `(x: 78)`, which means that one test needs to be updated.
The C++ `NameMatcher` has bee completely replaced by the swift-syntax `NameMatcher` now.
@ahoppen ahoppen force-pushed the ahoppen/delete-old-namematcher branch from 0a1c16f to 72d38e9 Compare December 12, 2023 20:58
@ahoppen
Copy link
Member Author

ahoppen commented Dec 12, 2023

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Dec 12, 2023

@swift-ci Please test Linux

1 similar comment
@ahoppen
Copy link
Member Author

ahoppen commented Dec 13, 2023

@swift-ci Please test Linux

@ahoppen
Copy link
Member Author

ahoppen commented Dec 13, 2023

@swift-ci Please test Windows

@ahoppen ahoppen merged commit 4de3833 into swiftlang:main Dec 14, 2023
drodriguez added a commit to drodriguez/swift that referenced this pull request Dec 15, 2023
Some of the tests now depend on features provided by Swift Syntax, and
will fail to pass if building without Swift Syntax support.

This commits marks all the tests I know fail to pass when Swift Syntax
is disabled.

- swiftlang#70281 modified `ASTGen/verify-parse.swift`
- swiftlang#70287 created `refactoring/SyntacticRename/operator.swift` and `SourceKit/RelatedIdents/operator.swift`
- swiftlang#70389 modified `SourceKit/Refactoring/basic.swift` and indirectly
  modified all `refactoring/ExtractFunction/*` tests.
drodriguez added a commit to drodriguez/swift that referenced this pull request Dec 15, 2023
Some of the tests now depend on features provided by Swift Syntax, and
will fail to pass if building without Swift Syntax support.

This commits marks all the tests I know fail to pass when Swift Syntax
is disabled.

- swiftlang#70281 modified `ASTGen/verify-parse.swift`
- swiftlang#70287 created `refactoring/SyntacticRename/operator.swift` and `SourceKit/RelatedIdents/operator.swift`
- swiftlang#70389 modified `SourceKit/Refactoring/basic.swift` and indirectly
  modified all `refactoring/ExtractFunction/*` tests.
drodriguez added a commit that referenced this pull request Dec 15, 2023
Some of the tests now depend on features provided by Swift Syntax, and
will fail to pass if building without Swift Syntax support.

This commits marks all the tests I know fail to pass when Swift Syntax
is disabled.

- #70281 modified `ASTGen/verify-parse.swift`
- #70287 created `refactoring/SyntacticRename/operator.swift` and `SourceKit/RelatedIdents/operator.swift`
- #70389 modified `SourceKit/Refactoring/basic.swift` and indirectly
  modified all `refactoring/ExtractFunction/*` tests.
meg-gupta pushed a commit to meg-gupta/swift that referenced this pull request Dec 21, 2023
Some of the tests now depend on features provided by Swift Syntax, and
will fail to pass if building without Swift Syntax support.

This commits marks all the tests I know fail to pass when Swift Syntax
is disabled.

- swiftlang#70281 modified `ASTGen/verify-parse.swift`
- swiftlang#70287 created `refactoring/SyntacticRename/operator.swift` and `SourceKit/RelatedIdents/operator.swift`
- swiftlang#70389 modified `SourceKit/Refactoring/basic.swift` and indirectly
  modified all `refactoring/ExtractFunction/*` tests.
Catfish-Man pushed a commit to Catfish-Man/swift that referenced this pull request Jan 19, 2024
Some of the tests now depend on features provided by Swift Syntax, and
will fail to pass if building without Swift Syntax support.

This commits marks all the tests I know fail to pass when Swift Syntax
is disabled.

- swiftlang#70281 modified `ASTGen/verify-parse.swift`
- swiftlang#70287 created `refactoring/SyntacticRename/operator.swift` and `SourceKit/RelatedIdents/operator.swift`
- swiftlang#70389 modified `SourceKit/Refactoring/basic.swift` and indirectly
  modified all `refactoring/ExtractFunction/*` tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants